# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2

inherit eutils

DESCRIPTION="Lean-back viewing for your PC"
HOMEPAGE="http://www.hulu.com/labs/hulu-desktop"
SRC_URI="x86? ( http://download.hulu.com/${PN}_i386.deb )
         amd64? ( http://download.hulu.com/${PN}_amd64.deb )"
LICENSE=""

SLOT="0"
KEYWORDS="~x86 ~amd64"

IUSE="lirc"

RESTRICT="mirror"

DEPEND=">=x11-libs/gtk+-2.12
    >=dev-libs/glib-2.16
    >=www-plugins/adobe-flash-9.0.124
    lirc? ( >=app-misc/lirc-0.8.2 )"

RDEPEND="${DEPEND}"

QA_PRESTRIPPED="usr/bin/huludesktop"
QA_EXECSTACK="usr/bin/huludesktop"

src_unpack() {
    unpack ${A}
    unpack ./data.tar.gz
}

src_install() {
    cp -R "${WORKDIR}"/{usr,etc} "${D}"
}
